<?php
try{
    $pdo = new PDO("mysql:host=localhost;dbname=player;charset=utf8", "root", "taorui");
} catch (Exception $exception){
    echo $exception->getMessage();
}